import time

from celery import shared_task


@shared_task  # type: ignore
def split_pdf_task(pdf_path: str) -> str:
    print(f"Splitting PDF from {pdf_path}")
    start_time = time.time()
    time.sleep(15)
    end_time = time.time()
    print(f"Time taken: {end_time - start_time} seconds")
    return "PDF split Success"
